<include file="Public:header"/>

<div class="main main_knowledge">
	<div class="knowledge_top">
		<div class="clearfix wrap">
			<div class="img_big">
				<notempty name="banner.0">
				<a href="{$banner[0]['open_url']}">
					<img src="{:img($banner[0]['images_url'], 914, 488)}">
					<span class="pink">{$banner[0]['category_name']}</span>
					<div class="tit">
						<p>{$banner[0]['title']}</p>
					</div>
				</a>
				</notempty>
			</div>
			<div class="img_middle">
				<notempty name="banner.1">
				<a class="mb6" href="{$banner[1]['open_url']}">
					<img src="{:img($banner[1]['images_url'], 770, 238)}">
					<span class="lightblue">{$banner[1]['category_name']}</span>
					<div class="tit">
						<p>{$banner[1]['title']}</p>
					</div>
				</a>
				</notempty>
				<notempty name="banner.2">
				<a href="{$banner[2]['open_url']}">
					<img src="{:img($banner[2]['images_url'], 770, 238)}">
					<span class="lightblue">{$banner[2]['category_name']}</span>
					<div class="tit">
						<p>{$banner[2]['title']}</p>
					</div>
				</a>
				</notempty>
			</div>
			<div class="img_small">
				<notempty name="banner.3">
				<a class="mb6" href="{$banner[3]['open_url']}">
					<img src="{:img($banner[3]['images_url'], 490, 238)}">
					<span class="lightgreen">{$banner[3]['category_name']}</span>
					<div class="tit">
						<p>{$banner[3]['title']}</p>
					</div>
				</a>
				</notempty>
				<notempty name="banner.4">
				<a href="{$banner[4]['open_url']}">
					<img src="{:img($banner[4]['images_url'], 490, 238)}">
					<span class="blue">{$banner[4]['category_name']}</span>
					<div class="tit">
						<p>{$banner[4]['title']}</p>
					</div>
				</a>
				</notempty>
			</div>
		</div>
	</div>
	<div class="clearfix wrap knowledge_content">
		<div class="left">
			<div id="j_nav_sticky" class="nav_bar">
				<ul class="clearfix">
					<li  <eq name="category_id" value="">class="cur"</eq>><a href="{:URL('/knowledge')}">全部</a></li>
					<volist name="category_list" id="rs">
					<li <eq name="category_id" value="$rs['id']">class="cur"</eq>>
						<a href="{:URL('index', array('category_id' => $rs['id']), '/knowledge/' . $rs['id'])}">{$rs['title']}</a>
					</li>
					</volist>
				</ul>
			</div>
			<div class="knowledge_list">
				<div class="list-box">
					<include file="index_ajax_item"/>
				</div>
				<neq name="ajax_next_page" value="">
					<div class="more load-more" url="{$ajax_next_page}" data-to="list-box">
						<a class="btn_more nojump">加载更多...</a>
					</div>
				</neq>
			</div>
		</div>
		<div class="side">
			<div class="block block_tags">
				<h2>热门标签</h2>
				<div class="content">
					<ul class="clearfix">
						<volist name="hot_tag_list" id="rs">
							<li><a href="{:URL('search')}?tags_id={$rs['tags_id']}">{$rs['content']}</a></li>
						</volist>
					</ul>
				</div>
			</div>
			<div class="block block_search">
				<form action="{:U('search')}" method="get">
					<input type="text" name="keyword" value="" class="text" />
					<input type="submit" name="" value="搜索" class="btn" />
				</form>
			</div>
			<div class="block block_news">
				<h2>热门文章</h2>
				<div class="content">
					<ul>
						<volist name="hot_list" id="rs">
						<li>
							<div class="thumb">
								<a href="{:URL('detail', array('article_id' => $rs['article_id']), 'knowledge/detail_' . $rs['article_id'])}">
									<img src="{:img($rs['cover_url'], 156, 104)}" alt="" />
								</a>
							</div>
							<div class="info">
								<a href="{:URL('detail', array('article_id' => $rs['article_id']), 'knowledge/detail_' . $rs['article_id'])}">
									{:str_cut($rs['title'], 70)}
								</a>
							</div>
						</li>
						</volist>
					</ul>
				</div>
			</div>
		</div>
	</div>
</div>

<include file="Public:footer"/>